#include <iostream>
#include <thread>
#include <chrono>
#include "test1.h"

void threadFunction1()
{
    test(2, 3);
}

void threadFunction2()
{
    test(4, 5);
}
void threadFunction3()
{
    test(6, 7);
}
void threadFunction4()
{
    test(8, 9);
}
void threadFunction5()
{
    test(10, 11);
}
int main()
{
    std::thread t1(threadFunction1);
    std::thread t2(threadFunction2);
    std::thread t3(threadFunction3);
    std::thread t4(threadFunction4);
    // 打印每个线程的ID
    std::cout << "Thread t1 ID: " << t1.get_id() << std::endl;
    std::cout << "Thread t2 ID: " << t2.get_id() << std::endl;
    std::cout << "Thread t3 ID: " << t3.get_id() << std::endl;
    std::cout << "Thread t4 ID: " << t4.get_id() << std::endl;
    t1.join();
    t2.join();
    t3.join();
    t4.join();
    return 0;
}
// 公共函数
//编译加g
//b gdbserver c gdb r n
// set scheduler-locking off
// set scheduler-locking on
//arg 
//环境变量
//监视
// gdb 文件调试加display
//target remote 192.168.137.100:2001
//display *aa@3
//list 函数 
//p *array@len